//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.orphan.supplier.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.orphan.supplier.mapper.GoodsMapper;
import com.orphan.supplier.po.Goods;
import com.orphan.supplier.service.IGoodsService;
import java.util.ArrayList;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("iGoodsService")
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {
    @Resource
    private GoodsMapper mapper;

    public GoodsServiceImpl() {
    }

    public boolean add(Goods goods) {
        return this.mapper.insert(goods) > 0;
    }

    public ArrayList<Goods> list() {
        return this.mapper.findAll();
    }
}
